package com.sq.partner.manager.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.IGatewayFacadeUserChannelDao;
import com.sq.partner.manager.mybatis.model.ChannelDto;
import com.sq.partner.manager.mybatis.model.GatewayFacadeUserChannel;
@Repository
public class GatewayFacadeUserChannelDaoImpl extends BaseDaoImpl implements
		IGatewayFacadeUserChannelDao {

	@Override
	public void add(GatewayFacadeUserChannel channel) throws Exception {
		this.add("insertGatewayFacadeUserChannel", channel);
	}

	@Override
	public List<ChannelDto> queryChannelsByUserid(
			GatewayFacadeUserChannel channel) throws Exception {
		List<ChannelDto> list = (List<ChannelDto>)this.queryList("queryChannelByUserid", channel);
		return list;
	}

}
